package com.smedi.ismedi.authoritymanagement.core.domain.repository;

import com.smedi.ismedi.authoritymanagement.core.domain.aggregatemodel.AuthorityAccess;
import com.smedi.ismedi.authoritymanagement.core.domain.aggregatemodel.AuthorityInfo;

import java.util.List;
import java.util.Map;

public interface UserTokenRepository {
    void saveTokenAccessAndExpress(String path, AuthorityAccess authorityAccess, Long express);

    AuthorityAccess getAuthorityAccessAndRefreshExpress(String token, Map<String, List<Long>> maps);

    void deleteToken(String token);

    void refreshDataScope(String path, Long express, AuthorityInfo authorityInfo,String device);
}
